Produced by Araxis Merge on 2023-03-13 03:00:45 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Porto v4.0.4/Porto Theme/app/code/Smartwave/Porto/Block | Template.php | 2015-11-29 20:14:34 +0000 |
| 2 | Porto v4.0.5/Porto Theme/app/code/Smartwave/Porto/Block | Template.php | 2015-11-29 20:14:34 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 90 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | 1 | <?php | |||
| 2 | 2 | |||||
| 3 | namespace Smartwave\Porto\Block; | 3 | namespace Smartwave\Porto\Block; | |||
| 4 | 4 | |||||
| 5 | class Template extends \Magento\Framework\View\Element\Template { | 5 | class Template extends \Magento\Framework\View\Element\Template { | |||
| 6 | public $_coreRegistry; | 6 | public $_coreRegistry; | |||
| 7 | 7 | |||||
| 8 | public function __construct( | 8 | public function __construct( | |||
| 9 | \Magento\Backend\Block\Template\Context $context, | 9 | \Magento\Backend\Block\Template\Context $context, | |||
| 10 | \Magento\Framework\Registry $coreRegistry, | 10 | \Magento\Framework\Registry $coreRegistry, | |||
| 11 | array $data = [] | 11 | array $data = [] | |||
| 12 | ) { | 12 | ) { | |||
| 13 | $this->_coreRegistry = $coreRegistry; | 13 | $this->_coreRegistry = $coreRegistry; | |||
| 14 | parent::__construct($context, $data); | 14 | parent::__construct($context, $data); | |||
| 15 | } | 15 | } | |||
| 16 | 16 | |||||
| 17 | public function getConfig($config_path, $storeCode = null) | 17 | public function getConfig($config_path, $storeCode = null) | |||
| 18 | { | 18 | { | |||
| 19 | return $this->_scopeConfig->getValue( | 19 | return $this->_scopeConfig->getValue( | |||
| 20 | $config_path, | 20 | $config_path, | |||
| 21 | \Magento\Store\Model\ScopeInterface::SCOPE_STORE, | 21 | \Magento\Store\Model\ScopeInterface::SCOPE_STORE, | |||
| 22 | $storeCode | 22 | $storeCode | |||
| 23 | ); | 23 | ); | |||
| 24 | } | 24 | } | |||
| 25 | 25 | |||||
| 26 | public function getFooterLogoSrc(){ | 26 | public function getFooterLogoSrc(){ | |||
| 27 | $folderName = \Smartwave\Porto\Model\Config\Backend\Image\Logo::UPLOAD_DIR; | 27 | $folderName = \Smartwave\Porto\Model\Config\Backend\Image\Logo::UPLOAD_DIR; | |||
| 28 | $storeLogoPath = $this->_scopeConfig->getValue( | 28 | $storeLogoPath = $this->_scopeConfig->getValue( | |||
| 29 | 'porto_settings/footer/footer_logo_src', | 29 | 'porto_settings/footer/footer_logo_src', | |||
| 30 | \Magento\Store\Model\ScopeInterface::SCOPE_STORE | 30 | \Magento\Store\Model\ScopeInterface::SCOPE_STORE | |||
| 31 | ); | 31 | ); | |||
| 32 | $path = $folderName . '/' . $storeLogoPath; | 32 | $path = $folderName . '/' . $storeLogoPath; | |||
| 33 | $logoUrl = $this->_urlBuilder | 33 | $logoUrl = $this->_urlBuilder | |||
| 34 | ->getBaseUrl(['_type' => \Magento\Framework\UrlInterface::URL_TYPE_MEDIA]) . $path; | 34 | ->getBaseUrl(['_type' => \Magento\Framework\UrlInterface::URL_TYPE_MEDIA]) . $path; | |||
| 35 | return $logoUrl; | 35 | return $logoUrl; | |||
| 36 | } | 36 | } | |||
| 37 | 37 | |||||
| 38 | public function isHomePage() | 38 | public function isHomePage() | |||
| 39 | { | 39 | { | |||
| 40 | $currentUrl = $this->getUrl('', ['_current' => true]); | 40 | $currentUrl = $this->getUrl('', ['_current' => true]); | |||
| 41 | $urlRewrite = $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]); | 41 | $urlRewrite = $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]); | |||
| 42 | return $currentUrl == $urlRewrite; | 42 | return $currentUrl == $urlRewrite; | |||
| 43 | } | 43 | } | |||
| 44 | } | 44 | } | |||
| 45 | ?> | 45 | ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.